package net.shopxx.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Lob;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;

/**
 * Entity - 淘宝宝贝采集
 * 
 * @author frankie
 * @version 3.0
 */

@Entity
@Table(name = "bmw_taobao_product")
@SequenceGenerator(name = "sequenceGenerator", sequenceName = "bmw_taobao_product_sequence")
public class TaobaoProduct extends BaseEntity{
	
	private static final long serialVersionUID = 8880726475002792887L;

	/** 淘宝宝贝ID **/
	private Long taobaoProductId;
	
	/** 宝贝ID **/
	private Long productId;
	
	/** 淘宝宝贝url(一般为淘客链接) **/
	private String url;
	
	/** 淘宝宝贝描述 **/
	private String introduction;
	
	/** 淘宝宝贝标题 **/
	private String title;
	
	/** 淘宝宝贝图片 **/
	private String imgs;
	
	/** 淘宝宝贝skuJson数据 **/
	private String skuJson;
	
	/** 采集状态 0.初始化 1.已采集 2.已完成**/
	private Integer status;
	
	@Column(nullable = false)
	public Long getTaobaoProductId() {
		return taobaoProductId;
	}

	public void setTaobaoProductId(Long taobaoProductId) {
		this.taobaoProductId = taobaoProductId;
	}

	public Long getProductId() {
		return productId;
	}

	public void setProductId(Long productId) {
		this.productId = productId;
	}

	public String getUrl() {
		return url;
	}

	public void setUrl(String url) {
		this.url = url;
	}

	@Lob
	public String getIntroduction() {
		return introduction;
	}

	public void setIntroduction(String introduction) {
		this.introduction = introduction;
	}
	
	@Column(nullable = false)
	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	@Lob
	@Column(columnDefinition="TEXT", length = 65535)
	public String getImgs() {
		return imgs;
	}

	public void setImgs(String imgs) {
		this.imgs = imgs;
	}
	
	@Lob
	@Column(columnDefinition="TEXT", length = 65535)
	public String getSkuJson() {
		return skuJson;
	}

	public void setSkuJson(String skuJson) {
		this.skuJson = skuJson;
	}

	public Integer getStatus() {
		return status;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}

}
